package cn.xy.dao;

import cn.xy.pojo.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    //获取所有teacher的集合
    List<Teacher> getTeacherList();

    //根据id查询teacher
    Teacher getTeacherById(int tid);

    //增加teacher
    Integer addTeacher(Teacher teacher);

    //修改teacher信息
    Integer updateTeacher(Teacher teacher);

    //根据id删除teacher
    Integer deleteTeacher(int id);

    //使用万能map参数,进行增加
    Integer addTeacher2(Map<String,Object> map);

}
